// 定义卡车类，继承自Automobile
class Truck extends Automobile {
    private String type;
    public Truck(String brand, String plateNumber, String type) {
        super(brand, plateNumber);
        this.type = type;
    }
    public double getRent() {
        switch (type) {
            case "小型":
                return 300;
            case "中型":
                return 350;
            case "大型":
                return 500;
            default:
                return 0;
        }
    }
}